﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="1.aspx.cs" Inherits="M_1" %>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<form id="form_m_index" runat="server">
<card id="XML" title="XML Tutorial">
    <header>
        <h3>中大e家新闻中心</h3>
        <nav>
        <asp:Repeater ID="Repeater_Nav" runat="server">
            <ItemTemplate>
            <a href="#"><%# DataBinder.Eval(Container.DataItem, "ShortName")%></a>
            </ItemTemplate>
        </asp:Repeater>
        </nav>
    </header>
    <section>
        <h3>最新新闻</h3>
        <ul>
        <asp:Repeater ID="Repeater_LatestNews" runat="server">
            <ItemTemplate>
            <li>[<%# DataBinder.Eval(Container.DataItem, "SCollege")%>]<a href='news.aspx?id=<%# DataBinder.Eval(Container.DataItem, "newsid")%>'><%# DataBinder.Eval(Container.DataItem, "Title").ToString().Length < 20?DataBinder.Eval(Container.DataItem, "Title"):DataBinder.Eval(Container.DataItem, "Title").ToString().Substring(0,20) %></a></li>
            </ItemTemplate>
        </asp:Repeater>
        </ul>
    </section>
    <section>
        <h3>最热新闻</h3>
        <ul>
        <asp:Repeater ID="Repeater_HotNews" runat="server">
            <ItemTemplate>
            <li>[<%# DataBinder.Eval(Container.DataItem, "ShortName")%>]<a href='news.aspx?id=<%# DataBinder.Eval(Container.DataItem, "newsid")%>'><%# DataBinder.Eval(Container.DataItem, "Title").ToString().Length<20?DataBinder.Eval(Container.DataItem, "Title"):DataBinder.Eval(Container.DataItem, "Title").ToString().Substring(0,20) %></a></li>
            </ItemTemplate>
        </asp:Repeater>
        </ul>
    </section>
    <footer>
        &copy; eSYSU.COM <asp:Label ID="l_Time" runat="server"></asp:Label>
    </footer>
</card>
</form>
</wml>